<?php
//error_reporting(0);
require_once '../library/fungsi.lib.php';


// session
session_start();
$sess_id = session_id();

!isset($_GET["opr"]) ? $_GET["opr"] = "home" : null;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <meta name="robots" content="index, follow" />
        <meta name="description" content="<?php echo description; ?>" />
        <meta name="keywords" content="<?php echo keywords; ?>" />
        <title><?php echo title; ?></title>
        <link href="<?php echo URLHOST; ?>asset/img/favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <link type="text/css" rel="stylesheet" href="<?php echo URLHOST; ?>asset/css/style.css" ></link>



    </head>
    <body>

        <div id="wrap">
            <div id="pala"></div>
            <div id="menu">
                <div id="m_link">
                    <ul>
                        <li><a href="<?php echo URLPUBLICINDEX; ?>?opr=home" <?php echo $_GET["opr"] == "home" ? "class='current'" : null; ?>><span>Home</span></a></li> 
                        <li><a href="<?php echo URLPUBLICINDEX; ?>?opr=info" <?php echo $_GET["opr"] == "info" ? "class='current'" : null; ?>><span>Info</span></a></li>
                        <li><a href="<?php echo URLPUBLICINDEX; ?>?opr=cara-beli" <?php echo $_GET["opr"] == "cara-beli" ? "class='current'" : null; ?>><span>Cara Pembelian</span></a></li>
                        <li><a href="<?php echo URLPUBLICINDEX; ?>?opr=cek-transaksi" <?php echo $_GET["opr"] == "cek-transaksi" ? "class='current'" : null; ?>><span>Cek Transaksi</span></a></li>
                        <li><a href="<?php echo URLPUBLICINDEX; ?>?opr=hubungi-kami" <?php echo $_GET["opr"] == "hubungi-kami" ? "class='current'" : null; ?>><span>Hubungi Kami</span></a></li>
                    </ul>
                </div>
                <div id="m_cari">
                    <form method="get" action="<?php echo URLPUBLICINDEX; ?>">
                        <input type="hidden" name="opr" value="cari" />

                        <input type="text" id="c"  name="c" value="<?php echo!isset($_GET["c"]) ? null : $_GET["c"]; ?>" placeholder="Cari produk"/>

                        <input type="submit" value="" />
                    </form>
                </div>
            </div>
            <div id="badan">
                <div id="kiri">
                    <div id="k_kategori">
                        <?php
                        get_kategori_link();
                        ?>
                    </div>
                    <div id="k_temukan">
                        <ul>
                            <li><a class="kt_web" href="http://www.rider.co.id" target="_blank">Rider</a></li>
                            <li><a class="kt_twit" href="https://twitter.com/rider_adembener" target="_blank">Twitter</a></li>
                            <li><a class="kt_fb" href="https://www.facebook.com/riderlike" target="_blank">Facebook</a></li>
                            <li><a class="kt_mail" href="mailto:someone@example.com?Subject=Hello%20again">Kirim EMail</a></li>
                        </ul>
                    </div>

                </div>
                <div id="kanan">
                    <div id="k_atas">
                        <div>
                            <img class="posisi" src="<?php echo URLHOST; ?>asset/css/img/you_cart.jpg" />
                            <span class="total">( <?php echo get_produk_transaksi_total($sess_id); ?> items)</span> : <span class="rupiah">Rp. <?php echo get_produk_transaksi_rupiah($sess_id); ?></span>
                            <a href="<?php echo URLHOST; ?>transaksi"><img src="<?php echo URLHOST; ?>asset/css/img/you_checkout.jpg" /></a>
                        </div>
                    </div>
                    <div id="k_isi">
                        <?php
                        include 'isi.php';
                        ?>
                    </div>
                </div>

            </div>
            <div id="kaki">&#169; Copyright by Abdee Zakwan Tugas Akhir 2013</div>
        </div>
    </body>
</html>
